


#ifndef __DRIVER_DMA_H
#define __DRIVER_DMA_H


#include "ringbuff.h"
#include "stdint.h"

#define SCI_RECBUF_LEN  1024
#define GS2_DATA_TEMP   2048

extern uint32_t ADC0_Rslt_DMA[16];
extern uint32_t ADC1_Rslt_DMA[16];
extern uint32_t ADC2_Rslt_DMA[16];


extern void dma0_1_init(void);


extern STR_RINGBUF userUARTRecbuf;
extern STR_RINGBUF userUARTSendbuf;

extern STR_RINGBUF commUARTSendbuf;
extern STR_RINGBUF UART2Recbuf;
extern STR_RINGBUF UART2Sendbuf;

extern STR_RINGBUF UART1Recbuf;
extern STR_RINGBUF UART1Sendbuf;

extern STR_RINGBUF printfUARTRecbuf;
extern STR_RINGBUF printfUARTSendbuf;



extern void uart_dma_sendMessg(STR_RINGBUF *bufhdl);
extern void uart2_dma_sendMessg(STR_RINGBUF *bufhdl);
extern void uart1_dma_sendMessg(STR_RINGBUF *bufhdl);

#endif
